Predict the returned value
by Savonnah '23
def calc(num):
if num <= 10:
result = num * 2
else:
result = num * 10
return result
| Function Call | Return Value | |||
|---|---|---|---|---|
| calc(1) | → | |||
| calc(41) | → | |||
| calc(-5) | → | |||
| calc(3) | → | |||
| calc(10) | → | |||
Experiment with this code on Gitpod.io